<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title>Error en el Sistema</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div id="mainContainer">
            <div class="error ui-widget">
                <h3 class="ui-widget-header">Fatal Error</h3>
                <table>
                    <tr>
                        <td>
                            <div class="cause">Ha ocurrido un error en el sistema</div>
                            <div class="mensaje" style="color: red;">${ex}</div>
                            <div class="cause">${ex.cause}</div>
                            <div class="mensaje">${ex.message}</div>
                        </td>
                    </tr>
                    <c:if test="${not empty ex.cause}">
                        <tr>
                            <td>
                                <div id="detailExceptionDiv">
                                    <div class="cause">Causa: </div>
                                    <div class="detailException">${ex.cause}</div>
                                </div>
                            </td>
                        </tr>
                    </c:if>
                </table>
            </div>
        </div>
    </body>
</html>